#include <iostream>
#define SIZE 100
using namespace std;

double numbers[SIZE];
int n, i;

int main()
{
	double s = 0, p = 1;
	
	cout << "n = ";
	cin >> n;
			
	for (i = 0; i < n; ++i)
	{
		cout << "numbers[" << i << "]=";
		cin >> numbers[i];
	}

	
	for(i = 0; i < n; ++i)
	{
		s += numbers[i];
		p *= numbers[i];
	}
	
	cout << "s = " << s;
	cout << endl;
	cout << "p = ";
	cout << p; 
	
	cout << s + p;
	return 0;
}


